package framework.web.rpc;

import java.io.Serializable;

import javax.servlet.http.HttpServletRequest;

/**
 * 要在使用的时候，把session写进来？貌似不可以
 * @version $Revision$ $Date$
 * @author Base
 * @since 1.0
 */
public abstract class JsonRpcObject implements Serializable {
	private static final long	serialVersionUID	= 1626937718231585423L;
	
	private HttpServletRequest request = null;

	public JsonRpcObject() {}
	
	public void setRequest(HttpServletRequest request){
		this.request = request;
	}
	
	public HttpServletRequest getRequest(){
		return this.request;
	}

	private String	error	= "";

	/** 获取异常、错误消息使用 */
	public String getError() {
		return error;
	}

	/** 设置异常错误消息 */
	public void setError(String error) {
		this.error =error;
	}
}